package com.gxa.zhonglong.service.impl;

import com.gxa.zhonglong.mapper.PrGetMapper;
import com.gxa.zhonglong.pojo.PrGet;
import com.gxa.zhonglong.service.PrGetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("PrGetService")
@Transactional(rollbackFor = {Throwable.class})
public class PrGetServiceImpl implements PrGetService {

    @Autowired
    PrGetMapper prGetMapper;

    @Override
    public void add(PrGet prGet) {
        prGetMapper.add(prGet);
    }

    @Override
    public List<String> selectByNum(String num) {
        List<String> list = prGetMapper.selectByNum(num);
        return list;
    }

    @Override
    public void delete(String num) {
        prGetMapper.delete(num);
    }


}
